<template>
  <div>
    <h2>朋友:{{ name }}</h2>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "",
    };
  },
  created() {
    this.name = this.$route.query.name;
    console.log(this.$route.params.book);
    console.log(this.$route.query.flower);
  },
};
</script>

<style>
</style>